@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>系统用户管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                        <div class="col-lg-2 col-sm-3">
                            <div class="panel panel-default">
                                <div class="panel-heading">组织机构</div>
                                <div class="panel-body dept-tree">
                                    <ul id="deptTree" class="ztree"></ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-10 col-sm-9">
                        <div class="row">
                        <div class="hidden-xs" id="UserCwTableToolbar" role="group">
                            @if(shiro.hasPermission("/userCw/add")){
                                <#button name="添加" icon="fa-plus" clickFun="UserCw.openAddUserCw()"/>
                            @}
                            @if(shiro.hasPermission("/userCw/update")){
                                <#button name="修改" icon="fa-edit" clickFun="UserCw.openUserCwDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/userCw/delete")){
                                <#button name="删除" icon="fa-remove" clickFun="UserCw.delete()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/userCw/reset")){
                            <#button name="重置密码" icon="fa-refresh" clickFun="UserCw.resetPwd()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/userCw/freeze")){
                            <#button name="冻结" icon="fa-warning" clickFun="UserCw.freezeAccount()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/userCw/unfreeze")){
                            <#button name="解除冻结" icon="fa-check-circle" clickFun="UserCw.unfreeze()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/userCw/setRole")){
                            <#button name="角色分配" icon="fa-user-secret" clickFun="UserCw.roleAssign()" space="true"/>
                            @}
                        </div>
                        <#table id="UserCwTable"/>
                    </div>
                </div>
                </div>
                </div>
            </div>
        </div>
      </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/userCw/userCw.js"></script>
@}
